package KMP算法;


import java.util.Arrays;

public class Test {
    public static void main(String[] args) {

        String s = "leetcode";
        String b = "od";
        Solution solution = new Solution();
        int result = solution.strStr(s, b);
        System.out.println(result);
        int[] next = new int[b.length()];
        solution.getNext2(next, b);
        System.out.println(Arrays.toString(next));
    }
}
